package server;

import config.StartConfig;
import entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

/**
 * @ClassName server.AppServer
 * @Description
 * @Author Jingxiao.Ye
 * @Date 2021/12/6 上午12:13
 * @Version V1.0
 * @Since JDK 11
 */
@SpringBootApplication
public class AppServer {

    @Autowired
    private Student student;


    public static void main(String[] args) {
        SpringApplication.run(AppServer.class,args);
    }


    @PostConstruct
    public void init(){
        System.out.println(student);
    }

}
